package com.cykj.enterprise.controller;

import com.cykj.common.dto.ResponseDTO;
import com.cykj.common.entity.CareerExpectDO;
import com.cykj.enterprise.service.IHomeService;
import com.cykj.enterprise.vo.CareerExpectVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.enterprise.controller
 * @Author: 小白糖糖
 * @CreateTime: 2025-08-15 10:31
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@RequestMapping("/home")
@Tag(name = "企业端首页接口")
public class HomeController {
    @Autowired
    private IHomeService homeService;

    /**
    * @Description: 企业首页查询推荐人员列表查询接口
    * @Param: [jobId]
    * @return: com.cykj.common.dto.ResponseDTO
    */
    @Operation(summary = "企业首页查询推荐人员列表查询接口")
    @GetMapping("/getUserList")
    public ResponseDTO getRecommendationList(CareerExpectVO careerExpectVO){
        return homeService.getRecommendationList(careerExpectVO);
    }


    /**
    * @Description: 查询hr发布过的职位招聘列表，用于渲染首页右侧导航栏
    * @Param: []
    * @return: com.cykj.common.dto.ResponseDTO
    */
    @Operation(summary = "查询hr发布过的职位招聘列表，用于渲染首页右侧导航栏")
    @GetMapping("getRecruitList")
    public ResponseDTO getRecruitList(){
        return homeService.getRecruitList();
    }

}
